//
//  LAMerchantDetailBaseTableView.h
//  LYLazizDevelopDemo
//
//  Created by xbn_iMac on 2016/10/25.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MJRefresh.h"

typedef NS_ENUM(NSInteger , TableViewType) {
    TableViewType_Video,
    TableViewType_Review,
    TableViewType_Photo,
    TableViewType_Information
};

@protocol SubTableViewDelegate <NSObject>

@optional

- (void)tableViewType:(TableViewType)tableType didSelectRowAtIndexPath:(NSIndexPath *)indexPath object:(id)object;

- (void)requestDateWithType:(TableViewType)tableType andPrameter:(NSDictionary*)prameter andPage:(int)page andLimit:(int)limit resultSuccess:(void (^)(NSArray *result,NSNumber *timeStemp))successBlock;

@end

@interface LAMerchantDetailBaseTableView : UITableView

@property (nonatomic ,assign) BOOL isHaveLinkage;   // 是否有联动效果

@property (copy, nonatomic) void(^ScrollContentOffset)(CGPoint contentOffset);

@property (nonatomic, assign) BOOL canScroll;

@property (nonatomic, weak) id<SubTableViewDelegate> subTableDelegate;

- (void)lzScrollViewDidScroll:(UIScrollView *)scrollView;

- (void)checkHaveData;

- (void)downLoadNewData;    // 下拉刷新

- (void)upLoadMoreData;     // 上拉加载

- (void)createFooterView;

@end
